
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>4.HTML 属性 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="5-title.html" />
    
    
    <link rel="prev" href="3-element.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <span>
            
                    
                    入门
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../">
            
                <a href="../">
            
                    
                    0.HTML 介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="1-introduce.html">
            
                <a href="1-introduce.html">
            
                    
                    1.HTML 简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="2-basice.html">
            
                <a href="2-basice.html">
            
                    
                    2.HTML 基础
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    基础
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="3-element.html">
            
                <a href="3-element.html">
            
                    
                    3.HTML 元素
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.2" data-path="4-attritube.html">
            
                <a href="4-attritube.html">
            
                    
                    4.HTML 属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="5-title.html">
            
                <a href="5-title.html">
            
                    
                    5.HTML 标题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="6-paragraph.html">
            
                <a href="6-paragraph.html">
            
                    
                    6.HTML 段落
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="7-textformat.html">
            
                <a href="7-textformat.html">
            
                    
                    7.HTML 文本格式化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="8-link.html">
            
                <a href="8-link.html">
            
                    
                    8.HTML 超链接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="9-head.html">
            
                <a href="9-head.html">
            
                    
                    9.HTML head
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="10-css.html">
            
                <a href="10-css.html">
            
                    
                    10.HTML CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="11-imgs.html">
            
                <a href="11-imgs.html">
            
                    
                    11.HTML 图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="12-tables.html">
            
                <a href="12-tables.html">
            
                    
                    12.HTML 表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="13-list.html">
            
                <a href="13-list.html">
            
                    
                    13.HTML 列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="14-block.html">
            
                <a href="14-block.html">
            
                    
                    14.HTML 区块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.13" data-path="15-layouts.html">
            
                <a href="15-layouts.html">
            
                    
                    15.HTML 布局
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    其他
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="support.html">
            
                <a href="support.html">
            
                    
                    赞助/支持
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >4.HTML 属性</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="html-&#x5C5E;&#x6027;">HTML &#x5C5E;&#x6027;</h1>
<p><strong> &#x5C5E;&#x6027;&#x662F; HTML &#x5143;&#x7D20;&#x63D0;&#x4F9B;&#x7684;&#x9644;&#x52A0;&#x4FE1;&#x606F;&#x3002;</strong>  </p>
<hr>
<ul>
<li>HTML &#x5143;&#x7D20;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x5C5E;&#x6027;  </li>
<li>&#x5C5E;&#x6027;&#x53EF;&#x4EE5;&#x5728;&#x5143;&#x7D20;&#x4E2D;&#x6DFB;&#x52A0;&#x9644;&#x52A0;&#x4FE1;&#x606F;  </li>
<li>&#x5C5E;&#x6027;&#x4E00;&#x822C;&#x63CF;&#x8FF0;&#x4E8E;&#x5F00;&#x59CB;&#x6807;&#x7B7E;  </li>
<li>&#x5C5E;&#x6027;&#x603B;&#x662F;&#x4EE5;&#x540D;&#x79F0;&#xFF08;&#x952E;&#xFF09;/&#x503C;&#x5BF9;&#x7684;&#x5F62;&#x5F0F;&#x51FA;&#x884C;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A; name=&quot;value&quot;  </li>
</ul>
<hr>
<h2 id="html-&#x5C5E;&#x6027;&#x5E38;&#x7528;&#x5F15;&#x7528;&#x5C5E;&#x6027;&#x503C;">HTML &#x5C5E;&#x6027;&#x5E38;&#x7528;&#x5F15;&#x7528;&#x5C5E;&#x6027;&#x503C;</h2>
<p>&#x5C5E;&#x6027;&#x503C;&#x5E94;&#x8BE5;&#x59CB;&#x7EC8;&#x88AB;&#x5305;&#x62EC;&#x5728;&#x5F15;&#x53F7;&#x5185;&#x3002;<br>&#x53CC;&#x5F15;&#x53F7;&#x662F;&#x6700;&#x5E38;&#x7528;&#x7684;&#xFF0C;&#x4E0D;&#x8FC7;&#x4F7F;&#x7528;&#x5355;&#x5F15;&#x53F7;&#x4E5F;&#x6CA1;&#x6709;&#x95EE;&#x9898;&#x3002;<br><em>tip: &#x5728;&#x67D0;&#x5199;&#x7279;&#x522B;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x5982;&#x5C5E;&#x6027;&#x503C;&#x672C;&#x8EAB;&#x5C31;&#x542B;&#x6709;&#x53CC;&#x5F15;&#x53F7;&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x5FC5;&#x987B;&#x4F7F;&#x7528;&#x5355;&#x5F15;&#x53F7;&#x3002;</em>  </p>
<hr>
<h2 id="html-&#x63D0;&#x793A;&#xFF1A;&#x4F7F;&#x7528;&#x5C0F;&#x5199;&#x5C5E;&#x6027;">HTML &#x63D0;&#x793A;&#xFF1A;&#x4F7F;&#x7528;&#x5C0F;&#x5199;&#x5C5E;&#x6027;</h2>
<p>&#x5C5E;&#x6027;&#x7684;&#x952E;&#x503C;&#x5BF9;&#x5BF9;&#x5927;&#x5C0F;&#x5199;&#x4E0D;&#x654F;&#x611F;&#x3002;<br>&#x4E0D;&#x8FC7;&#xFF0C;&#x4E07;&#x7EF4;&#x7F51;&#x8054;&#x76DF;&#x5728;&#x5176; HMTL 4 &#x63A8;&#x8350;&#x6807;&#x51C6;&#x4E2D;&#x63A8;&#x8350;&#x5C0F;&#x5199;&#x7684;&#x5C5E;&#x6027;/&#x5C5E;&#x6027;&#x503C;&#x3002;<br>&#x800C;&#x65B0;&#x7248;&#x672C;&#x7684; (X)HTML &#x8981;&#x6C42;&#x4F7F;&#x7528;&#x5C0F;&#x5199;&#x5C5E;&#x6027;&#x3002;  </p>
<hr>
<h2 id="html-&#x5C5E;&#x6027;&#x53C2;&#x8003;&#x624B;&#x518C;">HTML &#x5C5E;&#x6027;<a href="https://www.runoob.com/tags/html-reference.html" target="_blank">&#x53C2;&#x8003;&#x624B;&#x518C;</a></h2>
<p>&#x4E0B;&#x9762;&#x5217;&#x51FA;&#x9002;&#x7528;&#x4E8E;&#x5927;&#x591A;&#x6570; HTML &#x5143;&#x7D20;&#x7684;&#x5C5E;&#x6027;&#x503C;&#xFF1A;  </p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5C5E;&#x6027;</th>
<th style="text-align:center">&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center">class</td>
<td style="text-align:center">&#x4E3A; html &#x5143;&#x7D20;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x6216;&#x591A;&#x4E2A;&#x7C7B;&#x6CA1;&#x90A3;&#x4E2A;(classname)(&#x7C7B;&#x540D;&#x4ECE;&#x6837;&#x5F0F;&#x6587;&#x4EF6;&#x5F15;&#x5165;)</td>
</tr>
<tr>
<td style="text-align:center">id</td>
<td style="text-align:center">&#x5B9A;&#x4E49;&#x5143;&#x7D20;&#x7684;&#x552F;&#x4E00; id</td>
</tr>
<tr>
<td style="text-align:center">style</td>
<td style="text-align:center">&#x89C4;&#x5B9A;&#x5143;&#x7D20;&#x7684;&#x884C;&#x95F4;&#x6837;&#x5F0F;(inline style)</td>
</tr>
<tr>
<td style="text-align:center">title</td>
<td style="text-align:center">&#x63CF;&#x8FF0;&#x4E86;&#x5143;&#x7D20;&#x7684;&#x989D;&#x5916;&#x4FE1;&#x606F;(&#x4F5C;&#x4E3A;&#x5DE5;&#x5177;&#x6761;&#x4F7F;&#x7528;)</td>
</tr>
</tbody>
</table>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="3-element.html" class="navigation navigation-prev " aria-label="Previous page: 3.HTML 元素">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="5-title.html" class="navigation navigation-next " aria-label="Next page: 5.HTML 标题">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"4.HTML 属性","level":"1.2.2","depth":2,"next":{"title":"5.HTML 标题","level":"1.2.3","depth":2,"path":"docs/5-title.md","ref":"./docs/5-title.md","articles":[]},"previous":{"title":"3.HTML 元素","level":"1.2.1","depth":2,"path":"docs/3-element.md","ref":"./docs/3-element.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"docs/4-attritube.md","mtime":"2020-07-14T12:54:35.671Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-14T15:48:00.710Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

